import { Provider } from "@angular/core";
import { HTTP_INTERCEPTORS } from "@angular/common/http";
import { LoggingInterceptor } from "./logging.interceptor";
import { AuthInterceptor } from "./auth.interceptor";

export const httpInterceptorProviders: Provider[] = [
  {
    provide: HTTP_INTERCEPTORS,
    useClass: LoggingInterceptor,
  },
  {
    provide: HTTP_INTERCEPTORS,
    useClass: AuthInterceptor,
  },
];
